<?php

use Illuminate\Database\Seeder;

class CategorySeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //这个默认顶级分类的数据填充需要创建到表中吗?
        $top = [
            'title'=>'默认顶级分类',
            'description'=>'默认顶级分类',
            'parent_id'=>0
        ];
        \App\Models\Category::create($top);
    }
}
